Platform Explorer / Nuxeo Platform LTS 2016 8.10

Contribution org.nuxeo.ecm.platform.comment.lifecycle--lifecycle

This contribution is part of XML component org.nuxeo.ecm.platform.comment.lifecycle inside nuxeo-platform-comment-8.10.jar /OSGI-INF/comment-life-cycle-contrib.xml

Extension Point

Extension point lifecycle of component LifeCycleService.

Contributed Items

  • <lifecycle defaultInitial="moderation_pending" name="comment_moderation">
    
          <transitions>
            <transition destinationState="moderation_published" name="moderation_publish">
              <description>Approve the comment</description>
            </transition>
            <transition destinationState="moderation_rejected" name="moderation_reject">
              <description>Reject the comment</description>
            </transition>
          </transitions>
          <states>
            <state description="Default state" name="moderation_pending">
              <transitions>
                <transition>moderation_publish</transition>
                <transition>moderation_reject</transition>
              </transitions>
            </state>
            <state description="Comment published" name="moderation_published"/>
            <state description="Comment Rejected" name="moderation_rejected"/>
          </states>
    
        </lifecycle>

    Reject the comment

XML Source

<extension point="lifecycle" target="org.nuxeo.ecm.core.lifecycle.LifeCycleService">

    <lifecycle defaultInitial="moderation_pending" name="comment_moderation">

      <transitions>
        <transition destinationState="moderation_published" name="moderation_publish">
          <description>Approve the comment</description>
        </transition>
        <transition destinationState="moderation_rejected" name="moderation_reject">
          <description>Reject the comment</description>
        </transition>
      </transitions>
      <states>
        <state description="Default state" name="moderation_pending">
          <transitions>
            <transition>moderation_publish</transition>
            <transition>moderation_reject</transition>
          </transitions>
        </state>
        <state description="Comment published" name="moderation_published"/>
        <state description="Comment Rejected" name="moderation_rejected"/>
      </states>

    </lifecycle>

  </extension>